package com.youlu.campus.entity.english;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户参与报名比赛
 */
@Data
@Document(collection = "userCompetition")
public class UserCompetition extends EntityBase {

    private String openId;

    @Indexed(unique = true)
    private String userId;

    private String name;
    @Indexed(unique = true)
    private String mobile;

    @Indexed
    private String universityId;

    private String universityName;

    private String nickName;

    private String avatarUrl;

    @Transient
    private Boolean buy = Boolean.FALSE;
    @Transient
    private String item;
    @Transient
    private Long inviteUserCount =0L;
}
